import {defineStore} from "pinia";
import top1 from "@/assets/top1.jpg";
import top2 from "@/assets/top2.jpg";
import top3 from "@/assets/top3.jpg";

export const messageListStore = defineStore('messageList', {
    state(){
        return {
            messageList :[
                {id: 1, name: "摇摇马旗舰店",newMessage: "恭喜你获得摇摇马",time:"2023-10-18 15:00",img:top1},
                {id: 1, name: "魔方旗舰店",newMessage: "您有一条店铺消息",time:"2025-06-21 15:00",img:top2},
                {id: 1, name: "床品大全",newMessage: "亲爱的用户：您之前看过的高品质蚕丝被降价啦！",time:"2025-05-01 15:00",img:top3}
            ]
        }
    },
    actions:{
      setList(list:any[]){
          this.messageList = list;
      }
    }
})